from common.exceptions import JsonAPIException
from apps.order.error_code import ErrCode as OrderErrCode
from apps.product.error_code import ErrCode as ProductErrCode
from django.db import transaction
from typing import List
from apps.product.models import (
    Product, GoodsBlock
)
from apps.order.models import (
    Order, SubOrder
)
from tuntun.settings import PRE_SALE_BLOCK_LOCK_TIME
import time

